package com.mzj.saas.rent;

import com.haixiaoke.saas.repository.core.AjaxResult;
import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.pojo.HouseFacilities;
import com.haixiaoke.saas.repository.service.IHouseFacilitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 房屋设施Controller
 *
 * @author qixi
 * @date 2023-04-06
 */
@RestController
@RequestMapping("/house/facilities")
public class HouseFacilitiesController extends BaseController {

    @Autowired
    private IHouseFacilitiesService houseFacilitiesService;

    /**
     * 查询房屋设施列表
     */
    @GetMapping("/list")
    public AjaxResult list(HouseFacilities houseFacilities) {
        return AjaxResult.success(houseFacilitiesService.selectHouseFacilitiesList(houseFacilities));
    }


}
